{% extends "catalog/base_generic.html" %}

{% block title %}<title>用户注册</title>{% endblock %}

{% block content %}
<h1>用户注册</h1>

{% if messages %}
  <div class="messages">
    {% for message in messages %}
    <div class="alert alert-{{ message.tags }}">
      {{ message }}
    </div>
    {% endfor %}
  </div>
{% endif %}

<form method="post" action="{% url 'user-register' %}">
  {% csrf_token %}
  {{ form.as_p }}
  <button type="submit" class="btn btn-primary">注册</button>
</form>
{% endblock %}